package fr.lip6.move.care.sdmaker.jvmmodel

class CompileResult {
    private static /* final */ CompileResult EMPTY_RESULT=new CompileResult(); 
    private CharSequence charSequenceResult;
    private String eltId;
    private Boolean isAddableToEntryPoint
    private static Boolean EMPTY_RESULT_IS_INITIALIZED= false;
    private static String EMPTY_ID="EMPTY_ID"
    
    def static CompileResult getEmptyResult(){
        if(EMPTY_RESULT_IS_INITIALIZED == false){
            EMPTY_RESULT.setCharSequenceResult('''''');
            EMPTY_RESULT.setEltID(EMPTY_ID);
            EMPTY_RESULT.setIsAddableToEntryPoint(false);
            EMPTY_RESULT_IS_INITIALIZED= true;
        }
        return EMPTY_RESULT;
    }

    def CharSequence getCharSequenceResult(){
        return charSequenceResult;
    }
    
    def String getEltID(){
        return eltId;
    }
    
    def Boolean getIsAddableToEntryPoint(){
    	return isAddableToEntryPoint;
    }
    
    def CompileResult setIsAddableToEntryPoint(Boolean isAddableToEntryPoint){
    	this.isAddableToEntryPoint= isAddableToEntryPoint;
   		return this;
    }
    
    def CompileResult setCharSequenceResult(CharSequence charSequenceResult){
        this.charSequenceResult= charSequenceResult;
        return this;
    }
    
    def CompileResult setEltID(String eltId){
        this.eltId= eltId;
        return this;
    }
    
    def CompileResult setEltKind(String eltKind){
        this.eltKind= eltKind
        return this;
    }
}